<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Title</title>

    <script src="./js/vue.min.js"></script>
</head>
<body>
    <div id="app">
        <com1></com1>
        <com1></com1>
        <com1></com1>
    </div>
    <template id="atemplate">
        <a href="http://www.baidu.com">百度</a>
    </template>
</body>
</html>
<script>
    var vm=new Vue(
        {
            el: "#app",
            data:{},
            methods: {},
            components:{
                com1:{
                    template: "#atemplate"
                }
            }
        }
    );
</script>